OperableOperator

Ecng.ComponentModel.OperatorRegistry

Represents an operator implementation for types implementing IOperable.

继承自: BaseOperator<T>

方法

Add
public override T Add(T first, T second)
result = operableOperator.Add(first, second)

Adds two values.

first
The first value.
second
The second value.

返回值: The result of addition.

Compare
public override int Compare(T x, T y)
result = operableOperator.Compare(x, y)

Compares two values.

x
The first value.
y
The second value.

返回值: A value indicating the relative order.

Divide
public override T Divide(T first, T second)
result = operableOperator.Divide(first, second)

Divides the first value by the second.

first
The first value.
second
The second value.

返回值: The result of division.

Multiply
public override T Multiply(T first, T second)
result = operableOperator.Multiply(first, second)

Multiplies two values.

first
The first value.
second
The second value.

返回值: The result of multiplication.

Subtract
public override T Subtract(T first, T second)
result = operableOperator.Subtract(first, second)

Subtracts the second value from the first.

first
The first value.
second
The second value.

返回值: The result of subtraction.